/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tsb.reproductor;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Date;

import javax.swing.JLabel;
import javax.swing.Timer;

/**
 *
 * @author Luciano
 */
public class ClockLabel extends JLabel implements ActionListener{

    public ClockLabel() {
    super("" + new Date());
    Timer t = new Timer(1000, this);
    t.start();
  }

  public void actionPerformed(ActionEvent ae) {
    setText((new Date()).toString());
  }
}
